package com.dm.cloud.core.mode;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
//import javax.validation.constraints.Min;

/**
 * @Author sg
 * @ClassName PaginationParam.java
 * @desc
 * @Date 2021/08/18 17:46
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "分页对象")
public class PaginationParam {

    /**
     * 当前页
     */
    @NonNull
//    @Min(value = 1, message = "最小为第一页")
    @Schema(description = "当前页")
    private Integer page;

    /**
     * 每页数量
     */
    @NonNull
//    @Min(value = 1, message = "每页最小值为1")
    @Schema(description = "每页数量")
    private Integer pageSize;

    /**
     * 总记录数
     */
    @Schema(description = "总记录数")
    private Long totalCount;
}
